var t,
  a =
    (t = require("../../../../config/index")) && t.__esModule
      ? t
      : { default: t };
Component({
  properties: { swiperCurrent: { type: Number, value: 3 } },
  data: {
    CDN: a.default.CDN,
    list: [
      { pic: "".concat(a.default.CDN, "/account/avatar0.png") },
      { pic: "".concat(a.default.CDN, "/account/avatar1.png") },
      { pic: "".concat(a.default.CDN, "/account/avatar2.png") },
      { pic: "".concat(a.default.CDN, "/account/avatar3.png") },
      { pic: "".concat(a.default.CDN, "/account/avatar4.png") },
      { pic: "".concat(a.default.CDN, "/account/avatar5.png") },
    ],
  },
  methods: {
    changeCurrent: function (t) {
      console.log(t, "e");
      var a;
      (a = t.detail.current),
        this.triggerEvent("changeSwiper", {
          swiperCurrent: a,
          pic: this.data.list[a].pic,
        });
    },
    goBefore: function () {
      var t = this.data.swiperCurrent;
      t > 0 &&
        (console.log(t, "current"),
        this.triggerEvent("changeSwiper", {
          swiperCurrent: t - 1,
          pic: this.data.list[t - 1].pic,
        }));
    },
    goNext: function () {
      var t = this.data.swiperCurrent;
      t < 5 &&
        this.triggerEvent("changeSwiper", {
          swiperCurrent: t + 1,
          pic: this.data.list[t + 1].pic,
        });
    },
  },
});
